from django.urls import path,re_path
from course.views import CourseDirectionView,CourseCategoryionView,CourseListView,CourseDetaileView,CourseChapterListApiView
urlpatterns=[
    path("direction/",CourseDirectionView.as_view()),
    re_path(r'^category/(?P<directionID>\d+)/$',CourseCategoryionView.as_view()),
    re_path(r'^course/(?P<directionID>\d+)/(?P<categoryID>\d+)/$',CourseListView.as_view()),
    re_path(r'^detailes/(?P<courseID>\d+)/$', CourseDetaileView.as_view()),
    re_path(r'^(?P<courseID>\d+)/chapters/$', CourseChapterListApiView.as_view()),
]